package com.yan.baseController;

import com.yan.system.bean.User;
import com.yan.utils.ShiroUtils;
import org.springframework.stereotype.Controller;

/**
 * Created by yanl_ on 2018/4/4.
 */
@Controller
public class BaseController {


    public User getUser() {
        return ShiroUtils.getUser();
    }

    public Long getUserId() {
        return getUser().getUserId();
    }

    public String getUsername() {
        return getUser().getUsername();
    }

}